<?php $this->JQuery()->javascriptCaptureStart()?>
jQuery(function() {
    $j('document').ready(function(){
        ValidateAjax.initialize('form_register_personal', '/user/validate-register-personal');
    });

    $j('#login').click(function() {
        $j('#login1').show();
        $j('#login2').show();

        $j('#register1').hide();
        $j('#register2').hide();
        $j('#register_company_link').hide();
    });

    $j('#register').click(function() {
        $j('#login1').hide();
        $j('#login2').hide();

        $j('#register1').show();
        $j('#register2').show();
        $j('#register_company_link').show();
    });
});
<?php $this->JQuery()->javascriptCaptureEnd()?>
<?php  //$this->form_register_personal->setAttrib('id', 'form_register_personal'); ?>

<hgroup>
    <h1><?php echo $this->t('Post an Ad')?></h1>
    <h2><?php echo $this->t("It's easy, free, and expose to local.")?></h2>

    </hgroup>

    <section class="main_section grid_12"><section class="nav">
    <ul>
    <li><span><?php echo $this->t('1. Select Category')?></span></li>
    <li><span><?php echo $this->t('2. Create Your Ad')?></span></li>
    <li class="selected"><span><?php echo $this->t('3. Login')?></span></li>
    </ul>

    </section>
    <section class="login_option grid_10 form">
        <form>
          <fieldset>
          <legend><?php echo $this->t('Almost Done...')?></legend>
            <p class="radio">
              <label><?php echo $this->t('Just input your login details:')?></label>
              <span><input name="switch" id="login" type="radio" value="" checked="checked"></span><?php echo $this->t('Current Member? Please Login!')?><br>

              <span><input name="switch" id="register" type="radio" value=""></span><?php echo $this->t('New User? Please enter your contact details.')?>
            </p>
            </fieldset>
        </form>
    </section><!--From here was copied from the login section-->
    <link rel="stylesheet" href="css/custom_member.css">
    <section class="signup grid_12 login">
        <p id="register_company_link" style="display:none;"><a href="<?php echo $this->geturl('register-company','user')?>"><?php echo $this->t('Create a Company Account');?></a></p>
        <section class="social grid_5" id="login1" style="display:block;">
          <form>
              <fieldset>
                <legend><?php echo $this->t('Login with Your Favourite Account<em> (Recommended)</em>')?></legend>
                <p class="button facebook"><a href="#"><?php echo $this->t('Connect with Facebook')?></a></p>
                <p class="button twitter"><a href="#"><?php echo $this->t('Connect with Twitter')?></a></p>
              </fieldset>
          </form>
        </section>

        <section class="social grid_6" id="register1" style="display:none;">
          <form>
              <fieldset>
                <legend><?php echo $this->t('Sign Up with Your Favourite Account<em> (Recommended)</em>')?></legend>
                <p class="desc">
                <ul>
                <li><?php echo $this->t('One less password to manage')?></li>
                <li><?php echo $this->t('One-click access when logged into Facebook/Twitter')?></li>

                <li><?php echo $this->t('Get AsiaClassified benefits without full registration')?></li>
                </ul>
                </p>
                <p class="button facebook"><a href="#"><?php echo $this->t('Connect with Facebook')?></a></p>
                <p class="button twitter"><a href="#"><?php echo $this->t('Connect with Twitter')?></a></p>
                <p class="desc"><em><?php echo $this->t('The easiest way to sign in AsiaClassified')?></em></p>
                <p class="remark"><?php echo $this->t("By clicking Login with facebook or Login with Twitter, I certify that I have erad and agree to AsiaClassified's")?> <a href="#"><?php echo $this->t('Terms of Use')?></a> and <a href="#"><?php echo $this->t('Privacy Policy')?></a>.</p>
              </fieldset>
          </form>
        </section>

        <section class="ac form grid_6" id="login2">
            <?php echo $this->form_login;?>
        </section>

        <section class="ac grid_6" id="register2" style="display:none;">
            <?php echo $this->form_register;?>
        </section>
    </section>
    <!--End of copy-->

    </section>
    <aside class="aside">
      <section class="help">
                <p class="nav">
        <a class="country_hk" href="#">Hong Kong</a>
        <?php /*
        <a href="<?php echo $this->url_tc?>" class="language_chi_t">中文</a>
        <a href="<?php echo $this->url_en?>">English</a>
         * 
         */?>
        <a href="http://asiaclassifiedblog.tumblr.com/"><?php echo $this->t('Blog');?></a>
        <a href="http://asiaclassified.zendesk.com/home"><?php echo $this->t('Help');?></a>
        </p>

      </section>
    </aside>
